<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单管理</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_2627533_d7zlvvj6zdr.css">
    <style>
        body {
            background-color: #f5f5f5;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #8c8c8c;
            font-size: 0.75rem;
        }
        .nav-item.active {
            color: #0052d9;
        }
        .icon {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }
        .tab-item {
            position: relative;
            padding: 12px 0;
            font-size: 14px;
            flex: 1;
            text-align: center;
            color: #666;
        }
        .tab-item.active {
            color: #0052d9;
            font-weight: 500;
        }
        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background-color: #0052d9;
            border-radius: 2px;
        }
        .order-card {
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            margin-bottom: 12px;
        }
        .status-pending-payment {
            color: #ff9800;
        }
        .status-pending-delivery {
            color: #1890ff;
        }
        .status-pending-receipt {
            color: #52c41a;
        }
        .status-completed {
            color: #8c8c8c;
        }
        .status-cancelled {
            color: #bfbfbf;
        }
        .primary-btn {
            background-color: #0052d9;
            color: white;
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 12px;
        }
        .secondary-btn {
            background-color: #f0f0f0;
            color: #666;
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 12px;
        }
        .outline-btn {
            border: 1px solid #0052d9;
            color: #0052d9;
            background-color: white;
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 12px;
        }
    </style>
</head>
<body class="pb-16">
    <header class="bg-white p-4 flex items-center shadow-sm">
        <a href="../core/profile.html" class="mr-4">
            <i class="icon iconfont icon-arrow-left"></i>
        </a>
        <h1 class="text-lg font-medium flex-1 text-center">我的订单</h1>
        <div class="relative">
            <i class="icon iconfont icon-search text-gray-500"></i>
        </div>
    </header>

    <!-- 搜索框 -->
    <div class="bg-white p-3">
        <div class="flex items-center bg-gray-100 rounded-full px-3 py-2">
            <i class="icon iconfont icon-search text-gray-400 text-sm mr-2"></i>
            <input type="text" placeholder="搜索订单商品名称/订单号" class="bg-transparent border-none flex-1 text-sm focus:outline-none">
        </div>
    </div>

    <!-- 订单状态标签 -->
    <div class="bg-white flex border-b border-gray-200 sticky top-0 z-10">
        <div class="tab-item active">全部</div>
        <div class="tab-item">待付款</div>
        <div class="tab-item">待发货</div>
        <div class="tab-item">待收货</div>
        <div class="tab-item">已完成</div>
    </div>

    <!-- 订单筛选工具 -->
    <div class="p-3 flex justify-between text-sm text-gray-500">
        <div class="flex items-center">
            <span>最近三个月订单</span>
            <i class="icon iconfont icon-arrow-down text-xs ml-1"></i>
        </div>
        <div class="flex items-center">
            <i class="icon iconfont icon-filter text-sm mr-1"></i>
            <span>筛选</span>
        </div>
    </div>

    <!-- 订单列表 -->
    <div class="p-3">
        <!-- 订单1：待付款 -->
        <div class="order-card mb-4">
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="flex items-center">
                    <i class="icon iconfont icon-shop text-sm mr-1"></i>
                    <span class="text-sm">清镇苗族手工艺品店</span>
                </div>
                <span class="text-sm status-pending-payment">待付款</span>
            </div>
            <div class="p-3 flex border-b border-gray-100">
                <div class="w-20 h-20 bg-gray-100 rounded-md overflow-hidden mr-3">
                    <img src="https://via.placeholder.com/80x80?text=苗族银饰" class="w-full h-full object-cover" alt="商品图片">
                </div>
                <div class="flex-1">
                    <div class="text-sm font-medium">贵州苗族银饰项链 传统手工艺 民族特色礼品</div>
                    <div class="text-xs text-gray-500 mt-1">规格：925银</div>
                    <div class="flex justify-between items-center mt-2">
                        <div class="text-sm">¥298.00</div>
                        <div class="text-sm text-gray-500">x1</div>
                    </div>
                </div>
            </div>
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="text-sm text-gray-500">2025-06-05 10:30</div>
                <div class="text-sm">共1件商品 合计：<span class="font-medium">¥298.00</span></div>
            </div>
            <div class="p-3 flex justify-end">
                <button class="secondary-btn mr-2">取消订单</button>
                <button class="primary-btn">去支付</button>
            </div>
        </div>

        <!-- 订单2：待发货 -->
        <div class="order-card mb-4">
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="flex items-center">
                    <i class="icon iconfont icon-shop text-sm mr-1"></i>
                    <span class="text-sm">茅台镇酱香白酒旗舰店</span>
                </div>
                <span class="text-sm status-pending-delivery">待发货</span>
            </div>
            <div class="p-3 flex border-b border-gray-100">
                <div class="w-20 h-20 bg-gray-100 rounded-md overflow-hidden mr-3">
                    <img src="https://via.placeholder.com/80x80?text=白酒" class="w-full h-full object-cover" alt="商品图片">
                </div>
                <div class="flex-1">
                    <div class="text-sm font-medium">贵州茅台镇酱香型白酒 53度500ml 传统工艺</div>
                    <div class="text-xs text-gray-500 mt-1">规格：酱香型·礼盒装</div>
                    <div class="flex justify-between items-center mt-2">
                        <div class="text-sm">¥399.00</div>
                        <div class="text-sm text-gray-500">x2</div>
                    </div>
                </div>
            </div>
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="text-sm text-gray-500">2025-06-04 15:45</div>
                <div class="text-sm">共2件商品 合计：<span class="font-medium">¥813.00</span></div>
            </div>
            <div class="p-3 flex justify-end">
                <button class="secondary-btn mr-2">联系商家</button>
                <button class="outline-btn">提醒发货</button>
            </div>
        </div>

        <!-- 订单3：待收货 -->
        <div class="order-card mb-4">
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="flex items-center">
                    <i class="icon iconfont icon-shop text-sm mr-1"></i>
                    <span class="text-sm">梵净山高山茶叶专营店</span>
                </div>
                <span class="text-sm status-pending-receipt">待收货</span>
            </div>
            <div class="p-3 flex border-b border-gray-100">
                <div class="w-20 h-20 bg-gray-100 rounded-md overflow-hidden mr-3">
                    <img src="https://via.placeholder.com/80x80?text=绿茶" class="w-full h-full object-cover" alt="商品图片">
                </div>
                <div class="flex-1">
                    <div class="text-sm font-medium">梵净山高山绿茶 特级礼盒装 125g</div>
                    <div class="text-xs text-gray-500 mt-1">规格：特级·礼盒</div>
                    <div class="flex justify-between items-center mt-2">
                        <div class="text-sm">¥198.00</div>
                        <div class="text-sm text-gray-500">x1</div>
                    </div>
                </div>
            </div>
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="text-sm text-gray-500">2025-06-03 09:15</div>
                <div class="text-sm">共1件商品 合计：<span class="font-medium">¥198.00</span></div>
            </div>
            <div class="p-3 flex justify-end">
                <button class="secondary-btn mr-2">查看物流</button>
                <button class="primary-btn">确认收货</button>
            </div>
        </div>

        <!-- 订单4：已完成 -->
        <div class="order-card mb-4">
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="flex items-center">
                    <i class="icon iconfont icon-shop text-sm mr-1"></i>
                    <span class="text-sm">织金洞景区官方旗舰店</span>
                </div>
                <span class="text-sm status-completed">已完成</span>
            </div>
            <div class="p-3 flex border-b border-gray-100">
                <div class="w-20 h-20 bg-gray-100 rounded-md overflow-hidden mr-3">
                    <img src="https://via.placeholder.com/80x80?text=门票" class="w-full h-full object-cover" alt="商品图片">
                </div>
                <div class="flex-1">
                    <div class="text-sm font-medium">织金洞景区门票 电子票</div>
                    <div class="text-xs text-gray-500 mt-1">规格：成人票·标准</div>
                    <div class="flex justify-between items-center mt-2">
                        <div class="text-sm">¥120.00</div>
                        <div class="text-sm text-gray-500">x2</div>
                    </div>
                </div>
            </div>
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="text-sm text-gray-500">2025-05-28 16:20</div>
                <div class="text-sm">共2件商品 合计：<span class="font-medium">¥240.00</span></div>
            </div>
            <div class="p-3 flex justify-end">
                <button class="secondary-btn mr-2">再次购买</button>
                <button class="outline-btn">评价</button>
            </div>
        </div>

        <!-- 订单5：已取消 -->
        <div class="order-card">
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="flex items-center">
                    <i class="icon iconfont icon-shop text-sm mr-1"></i>
                    <span class="text-sm">贵阳传统小吃坊</span>
                </div>
                <span class="text-sm status-cancelled">已取消</span>
            </div>
            <div class="p-3 flex border-b border-gray-100">
                <div class="w-20 h-20 bg-gray-100 rounded-md overflow-hidden mr-3">
                    <img src="https://via.placeholder.com/80x80?text=小吃" class="w-full h-full object-cover" alt="商品图片">
                </div>
                <div class="flex-1">
                    <div class="text-sm font-medium">贵阳丝娃娃套餐 正宗贵州特色小吃</div>
                    <div class="text-xs text-gray-500 mt-1">规格：2-3人份</div>
                    <div class="flex justify-between items-center mt-2">
                        <div class="text-sm">¥88.00</div>
                        <div class="text-sm text-gray-500">x1</div>
                    </div>
                </div>
            </div>
            <div class="p-3 flex justify-between items-center border-b border-gray-100">
                <div class="text-sm text-gray-500">2025-05-20 12:30</div>
                <div class="text-sm">共1件商品 合计：<span class="font-medium">¥88.00</span></div>
            </div>
            <div class="p-3 flex justify-end">
                <button class="secondary-btn">删除订单</button>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200">
        <div class="flex justify-around py-2">
            <a href="../core/home.html" class="nav-item">
                <i class="icon iconfont icon-home"></i>
                <span>首页</span>
            </a>
            <a href="../core/discover.html" class="nav-item">
                <i class="icon iconfont icon-discover"></i>
                <span>发现</span>
            </a>
            <a href="../core/messages.html" class="nav-item">
                <i class="icon iconfont icon-message"></i>
                <span>消息</span>
            </a>
            <a href="../core/profile.html" class="nav-item active">
                <i class="icon iconfont icon-user"></i>
                <span>我的</span>
            </a>
        </div>
    </div>
</body>
</html> 